package com.da.web.select_bed.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.da.cache.MyCache;
import com.da.web.select_bed.entity.ChangeStu;
import com.da.web.select_bed.entity.StuBed;
import com.da.web.select_bed.entity.StuBedVo;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author da
 * @time 2023/12/13 上午 9:16
 */
@CacheNamespace(implementation = MyCache.class, eviction = MyCache.class)
public interface StuBedMapper extends BaseMapper<StuBed> {
    //通过学生id获取宿舍信息
    List<StuBedVo> getStuBedList(@Param("stuId") Long stuId);

    List<ChangeStu> getStuList(@Param("classId") Long classId);
}
